package cn.edu.zafu.bigdata.YinMingyan.chapter06;

import java.util.Scanner;

public class TestInvalidScore {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个分数: ");
        int score = scanner.nextInt();

        try {
            ScoreChecker.checkScore(score);
        } catch (InvalidScoreException e) {
            System.out.println(e.getMessage());
        }

        scanner.close();
    }
}
